Skip to content

Conversation

@RossBrunton
Copy link
Contributor

This adds offload as a backend to the sycl runtime. This means it is
accepted as a value for ONEAPI_DEVICE_SELECTOR and friends, and
prevents an offload device reporting itself as such causing an exception
to be thrown.

Note that the UR offload adapter is still not built as part of the
build. The only way to use this is with a standalone build of
unified-runtime with libur_adapter_offload enabled and in the
LD_LIBRARY_PATH.

@RossBrunton RossBrunton requested review from a team as code owners May 27, 2025 14:26
@RossBrunton RossBrunton requested a review from cperkinsintel May 27, 2025 14:26
@RossBrunton RossBrunton removed the request for review from a team May 28, 2025 10:51
This adds `offload` as a backend to the sycl runtime. This means it is
accepted as a value for `ONEAPI_DEVICE_SELECTOR` and friends, and
prevents an offload device reporting itself as such causing an exception
to be thrown.

Note that the UR offload adapter is still not built as part of the
build. The only way to use this is with a standalone build of
unified-runtime with libur_adapter_offload enabled and in the
`LD_LIBRARY_PATH`.
@RossBrunton
Copy link
Contributor Author

@intel/llvm-reviewers-runtime @callumfare @kbenzie Now this is green, can I get it looked at?

Basically, as part of offload work we want to be able to do ONEAPI_DEVICE_SELECTOR="offload:*" to use the offload adapter. We intend for this to be an undocumented "hidden" selector as the end user is not expected to explicitly use this adapter. Having it available as a dedicated target makes developer and CI workflows a lot easier.

@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge.

@kbenzie kbenzie merged commit 546c56c into intel:sycl Jun 5, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants